package com.itheima_01.day08;

import java.sql.SQLOutput;
import java.util.Scanner;

public class KeHouZuoYe_02 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个长字符串:");
        String s=sc.nextLine();
        System.out.println("请输入一个短字符串:");
        String s1=sc.nextLine();
        String xin=s.replace(s1,"");
        int count=(s.length()-xin.length())/s1.length();
        System.out.println("短字符串出现的次数是："+count);





    }


}
